<?php 

namespace app\common\validate\dormitory;

use think\Validate;

class DormitoryFloor extends Validate 
{ 
    protected $rule = [
        'floor_name' => 'require',
        'dormitory_id' => 'require',
    ];

    protected $message = [
        'floor_name.require' => '请输入名称',
        'dormitory_id.require' => '请输入所属宿舍',
    ];

    protected $scene = [
        'edit' => ['floor_name','admin_name','dormitory_id','id'],
        'add' => ['floor_name','admin_name','dormitory_id'],
    ];

} 
